namespace MvcEnrollment.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class stupaycour : DbMigration
    {
        public override void Up()
        {
            AddForeignKey("dbo.Student", "courseId", "dbo.Course", "ID", cascadeDelete: true);
            AddForeignKey("dbo.Student", "paymentId", "dbo.Payment", "ID", cascadeDelete: false);
            CreateIndex("dbo.Student", "courseId");
            CreateIndex("dbo.Student", "paymentId");
        }
        
        public override void Down()
        {
            DropIndex("dbo.Student", new[] { "paymentId" });
            DropIndex("dbo.Student", new[] { "courseId" });
            DropForeignKey("dbo.Student", "paymentId", "dbo.Payment");
            DropForeignKey("dbo.Student", "courseId", "dbo.Course");
        }
    }
}
